package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(100);comment:账号"`
	Password string `gorm:"type:varchar(100);comment:密码"`
}
type Video struct {
	gorm.Model
	Title   string `gorm:"type:varchar(100);comment:视频标题"`
	Image   string `gorm:"type:varchar(500);comment:视频封面"`
	Content string `gorm:"type:varchar(100);comment:内容"`
	Type    string `gorm:"type:varchar(100);comment:类型"`
	Status  string `gorm:"type:varchar(100);comment:视频状态"`
	Author  string `gorm:"type:varchar(100);comment:上传者"`
	Address string `gorm:"type:varchar(100);comment:<UNK>"`
}
type Collect struct {
	gorm.Model
	VideoId int `gorm:"type:int(11);comment:视频id"`
}
type Like struct {
	gorm.Model
	VideoId int `gorm:"type:int(11);comment:视频id"`
}
type Share struct {
	gorm.Model
	UserId  int `gorm:"type:int(11);comment:分享人id"`
	DitsId  int `gorm:"type:int(11);comment:接收人id"`
	VideoId int `gorm:"type:int(11);comment:视频id"`
}
type Download struct {
	gorm.Model
	VideoId int `gorm:"type:int(11);comment:视频id"`
	Num     int `gorm:"type:int(11);comment:下载数量"`
}
type Comment struct {
	gorm.Model
	VideoId int    `gorm:"type:int(11);comment:视频id"`
	Text    string `gorm:"type:varchar(100);comment:评论内容"`
}
